home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
snowboard.swf
/
scripts
/
frame_1
/
DoAction_2.as
next >
Wrap
Text File
|
2007-01-15
|
1KB
|
48 lines
onEnterFrame = function()
{
_root.createEmptyMovieClip("line",2);
xx = _root.ball._x + 50 - _root.point1._x;
yy = _root.ball._y + 50 - _root.point1._y;
with(line)
{
lineStyle(2,16777215,100);
_x = _root.point1._x;
_y = _root.point1._y;
moveTo(xx,yy);
lineTo(xx / xx,yy / yy);
}
_root.createEmptyMovieClip("line2",3);
xx2 = _root.ball._x - 53 - _root.point2._x;
yy2 = _root.ball._y + 52 - _root.point2._y;
with(line2)
{
lineStyle(2,16777215,100);
_x = _root.point2._x;
_y = _root.point2._y;
moveTo(xx2,yy2);
lineTo(xx2 / xx2,yy2 / yy2);
}
_root.createEmptyMovieClip("line3",4);
xx3 = _root.ball._x - 54 - _root.point3._x;
yy3 = _root.ball._y - 54 - _root.point3._y;
with(line3)
{
lineStyle(2,16777215,100);
_x = _root.point3._x;
_y = _root.point3._y;
moveTo(xx3,yy3);
lineTo(xx3 / xx3,yy3 / yy3);
}
_root.createEmptyMovieClip("line4",5);
xx4 = _root.ball._x + 50 - _root.point4._x;
yy4 = _root.ball._y - 54 - _root.point4._y;
with(line4)
{
lineStyle(2,16777215,100);
_x = _root.point4._x;
_y = _root.point4._y;
moveTo(xx4,yy4);
lineTo(xx4 / xx4,yy4 / yy4);
}
};